home *** CD-ROM | disk | FTP | other *** search
-
-
- ;================================= ENGLISH ==================================
-
- (set #bad-kick "You must be using at least Kickstart 3.0 (V39) to install ShutAll")
-
- (set #copy-main "Copying ShutAll...")
- (set #copy-samples "Copying Sound Samples...")
- (set #copy-prefs "Copying Preferences Program...")
- (set #copy-doc "Copying Documentation...")
- (set #copy-dock "Copying Dock icon...")
-
- (set #drawer-main "Creating Drawer ShutAll...")
- (set #drawer-samples "Creating Drawer Samples...")
-
-
- (set #inst-doc "\n\nDo you want to install the the english AmigaGuide Documentation ?")
- (set #inst-samples "\n\nDo you want to install the Sound Sample drawer ?\n(Yes Yes Yes !!!)")
- (set #inst-dock "\n\nDo you want to install the Dock Icon for ToolManager ?\n(very usefull)")
-
- (set #where-main "Where would you like to install the ShutAll drawer ?")
- (set #where-main-help
- (cat
- "This is the destination directory for the ShutAll main program\n. A drawer called ShutAll will be created here."
- )
- )
- (set #where-doc "Where would you like to install the Documentation ?")
- (set #where-samples "Where would you like to install the Sound Samples ?\nA drawer called Samples will be created here.")
- (set #where-dock "Where would you like to install the Dock Icon for ToolManager ?")
- (set #where-prefs "\n\nDo you want to install the Preferences Program ?\n(very usefull)")
-
-
- (set #install-exit "Thank you for installing ShutAll ...")
- (set #install-start
- (cat
- "\n\n"
- "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"
- "Welcome to ShutAll installation utility !\n\n"
- "Brought to you by Stéphane NICOLE\n\n"
- "October 1996\n\n"
- "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"
- "Now you will enjoy switching off your Amiga !!!"
- )
-
- )
- (set doc-file "ShutAll_eng.guide")
-
-
- ;============================== PROGRAM-START================================
-
- (set @default-dest "SYS:")
-
- ; Check Kickstart (>= v3.0) Version.
-
- (if (< (/ (getversion) 65536) 39)
- (abort #bad-kick)
- )
-
- (message #install-start)
-
-
- (welcome)
-
- ;-------------------------------
- ; Ask for Main prog Installation
- ;-------------------------------
-
- (set startup-files 0)
-
- (set main-dest
- (askdir
- (help "")
- (prompt #where-main)
- (default @default-dest)
- )
- )
-
- ;-------------------
- ; New default drawer
- ;-------------------
-
- (set @default-dest
- (tackon main-dest "ShutAll")
- )
-
- ;----------------------------------
- ; Create Drawer & Copy Main Program
- ;----------------------------------
-
- (complete 0)
-
- (makedir @default-dest
- (prompt #drawer-main)
- (help "")
- (infos)
- )
-
-
- (copyfiles
- (prompt #copy-main)
- (source "ShutAll")
- (dest @default-dest)
- (files)
- (infos)
- )
-
-
- ;----------------------
- ; Copy Preferences Prog
- ;----------------------
-
- (complete 10)
-
- (set prefs-dest
- (askdir
- (help "")
- (prompt #where-prefs)
- (default @default-dest)
- )
- )
-
- (copyfiles
- (prompt #copy-pref)
- (source "SA_Prefs")
- (dest prefs-dest)
- (files)
- (infos)
- )
-
- ;----------------------
- ; Ask for documentation
- ;----------------------
-
- (complete 25)
-
-
- (set copy-doc
- (askbool
- (prompt #inst-doc)
- (help "")
- )
- )
-
-
- ;-------------------
- ; Copy documentation
- ;-------------------
-
- (if copy-doc
- (set doc-dest
- (askdir
- (help "")
- (prompt #where-doc)
- (default @default-dest)
- )
- )
- )
-
- (if copy-doc
- (copyfiles
- (prompt #copy-doc)
- (source doc-file)
- (dest doc-dest)
- (files)
- (infos)
- )
- )
-
- ;----------------------
- ; Ask for Dock Icon
- ;----------------------
-
- (complete 50)
-
-
- (set copy-dock
- (askbool
- (prompt #inst-dock)
- (help "")
- )
- )
-
- ;-------------------
- ; Copy DockIcon
- ;-------------------
-
- (if copy-dock
- (set dock-dest
- (askdir
- (help "")
- (prompt #where-dock)
- (default @default-dest)
- )
- )
- )
-
- (if copy-dock
- (copyfiles
- (prompt #copy-dock)
- (source "ShutAll-Dock.info")
- (dest dock-dest)
- (files)
- (infos)
- )
- )
-
-
-
-
- ;----------------------
- ; Ask for samples
- ;----------------------
-
- (complete 75)
-
- (set copy-samples
- (askbool
- (prompt #inst-samples)
- (help "")
- )
- )
-
-
- ;-------------------
- ; Copy samples
- ;-------------------
-
- (set @default-dest
- (tackon @default-dest "Samples")
- )
-
-
- (if copy-samples
- (copyfiles
- (prompt #copy-samples)
- (source "Samples/")
- (dest @default-dest)
- (confirm 2)
- (all)
- (help "")
- (infos)
- )
- )
-
-
- (complete 100)
-
- (EXIT #install-exit)
-
-